package com.xyx.ssm.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyx.ssm.jdbcdao.WinebrandDao;
import com.xyx.ssm.service.WinebrandService;
import com.xyx.ssm.util.Page;

@Service
public class WinebrandServiceImpl implements WinebrandService{
   @Autowired 
   private   WinebrandDao winebrandDao;

public Page<Map<String, Object>> findPage(Page<Map<String, Object>> page) {
	// TODO Auto-generated method stub
	return winebrandDao.findPage("com.xyx.ssm.jdbcdao.winebrandDao.SelectAllpage",page);
}
public int winebrandadd(Map<String,Object> map){
	   return winebrandDao.winebrandadd(map);
}
@Override
public int winebrandupdate(Map<String, Object> map) {
	
	return 0;
}
@Override
public Map<String,Object> selectbyid(Map<String, Object> map) {
	
	return winebrandDao.selectbyid(map);
}


   
}
